# -*- coding: utf-8 -*-
__author__ = 'guo'

# from views import *
import os.path

import handler.index
import handler.user


TEMPLATE_PATH = os.path.join(os.path.dirname(__file__), "templates")
STATIC_PATH = os.path.join(os.path.dirname(__file__), "static")

HANDLERS = [
    # 首页模块
    # (r"/", handler.index.IndexHandler),
    (r"/", handler.index.TopicsHandler),
    (r"/topics", handler.index.TopicsHandler),
    (r"/topics/(\d+)", handler.index.DetailHandler),
    (r"/topics/new", handler.index.NewHandler),

    # (r"/setting", handler.user.SettingHandler),
    # (r"/setting/avatar", handler.user.SettingAvatarHandler),
    # (r"/setting/avatar/gravatar", handler.user.SettingAvatarFromGravatarHandler),
    # (r"/setting/password", handler.user.SettingPasswordHandler),
    # (r"/forgot", handler.user.ForgotPasswordHandler),
    (r"/login", handler.user.LoginHandler),
    (r"/logout", handler.user.LogoutHandler),
    (r"/register", handler.user.RegisterHandler),
    (r"/ucenter", handler.user.UcenterHandler),
    (r"/account", handler.user.AccountHandler),

    # (r"/detail/", index.Detail),
    # (r"/comment", index.Comment),
    # (r"/search", index.Search),
]